const express = require('express')
const adminRouter = require('./routes/adminRouter.js')
const homeRouter = require('./routes/homeRouter.js')
const app = express()
app.use(adminRouter).use(homeRouter)

app.all('*', (req, res) => {
  res.status(404).send('404 Not Found')
})

app.listen(3000, () => {
  console.log('服务已经启动，3000端口监听中...')
})